<template>
  <!-- <div class="app-container home" >
    <el-row type="flex" justify="center" :gutter="10">
      <el-col :span="6">
        <el-card >
          <div slot="header" class="clearfix">
            <span>在注册会员</span>
            <el-button style="float: right; padding: 3px 0" type="text"
              >详情</el-button
            >
          </div>
          <div>1</div>
        </el-card>
      </el-col>

      <el-col :span="6">    <el-card>
          <div slot="header" class="clearfix">
            <span>在注册机构</span>
            <el-button style="float: right; padding: 3px 0" type="text"
              >详情</el-button
            >
          </div>
          <div>1</div>
        </el-card> </el-col>
      <el-col :span="6">     <el-card>
          <div slot="header" class="clearfix">
            <span>已缴费会员</span>
            <el-button style="float: right; padding: 3px 0" type="text"
              >详情</el-button
            >
          </div>
          <div>1</div>
        </el-card> </el-col>
      <el-col :span="6">     <el-card>
          <div slot="header" class="clearfix">
            <span>已交费机构</span>
            <el-button style="float: right; padding: 3px 0" type="text"
              >详情</el-button
            >
          </div>
          <div>1</div>
        </el-card> </el-col>
    </el-row>
    <el-row type="flex" justify="center" :gutter="10">
      <el-col :span="12">

 <el-card>1</el-card>
      </el-col>
 <el-col :span="12">
   <el-card>1</el-card>

      </el-col>

    </el-row>
    <el-row type="flex" justify="center" :gutter="10">
        <el-col :span="12">
            <el-card><piechart></piechart></el-card>
        </el-col>
  <el-col :span="12">
            <el-card>图表2</el-card>
        </el-col>
    </el-row>
  </div> -->
  <div>

      <adminIndex  v-if="user===1" />
<memberIndex v-if="user===1" />
<memberOrgIndex v-if="user===1" />
<memberDetail/>
  </div>
</template>
<script>
import { getUserProfile } from "@/api/system/user";
import adminIndex from './indexInfo/adminIndex/adminIndex.vue';
import memberIndex from "./indexInfo/memberIndex/memberIndex.vue"
import memberOrgIndex from "./indexInfo/memberOrgIndex/memberOrgIndex.vue"
import memberDetail from "./memberManager/memberDetail/memberDetail.vue"
export default {
  name: "Index",
  components:{
    adminIndex,memberIndex,memberOrgIndex,memberDetail
  },
  data() {
    return {
      // 版本号
      version: "3.8.0",
      user:{}
    };
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    },
     getUser() {
      getUserProfile().then(response => {
          this.user = response.data;
            console.log(response.data)
      });
    }
  },
  created(){
this.getUser();
  }
};
</script>

<style scoped lang="scss">


</style>

